package com.ka.ui;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ScrollView;

import com.ka.androidapplication.R;
import com.ka.component.AbsForm;
import com.ka.component.LoginForm;

public class LoginFormUI extends ScrollView {

	private AbsForm soul_form;

	public LoginFormUI(Context context) {
		this(context, null, 0);
	}

	public LoginFormUI(Context context, AttributeSet attrs) {
		this(context, attrs, 0);
	}

	public LoginFormUI(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);

		initialize(context);
	}

	private void initialize(Context context) {

		LayoutInflater inflater = LayoutInflater.from(context);
		inflater.inflate(R.layout.login_form, this);
		soul_form = new LoginForm(this);

	}

	public AbsForm getSoul_form() {
		return soul_form;
	}

	public void setSoul_form(AbsForm soul_form) {
		this.soul_form = soul_form;
	}
}
